package com.xuecheng.content.service;

import com.xuecheng.commons.model.dto.CourseBaseDto;
import com.xuecheng.commons.model.dto.CourseDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.vo.CourseBaseVo;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.domain.CourseBase;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 课程基本信息 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-12-03
 */
public interface CourseBaseService extends IService<CourseBase> {

    //分页、条件查询
    ResponseResult<CourseBaseVo> findByPage(CourseDto courseDto, PageRequest pageRequest);

    //课程新增
    ResponseResult<Map> saveCourseBase(CourseBaseDto courseBaseDto);

    //课程修改
    ResponseResult<Map> updateCourseBase(CourseBaseDto courseBaseDto);

    //课程删除
    ResponseResult deleteCourseBase(Long courseId);

    //课程下架
    ResponseResult offline(Long courseId);
}
